var angular = require('angular');// 引入angular

var urlRouterProvider = require('angular-ui-router');

var uiLoad =  require('angular-ui-load');

var $jq = require('jquery');

var animate = require('angular-animate');

var oclazyload = require('oclazyload');

require('angular-messages');
require('angular-sanitize');

var ngModule = angular.module('app',['ui.router','ui.load','ngAnimate','oc.lazyLoad','ngMessages','ngSanitize']); // 创建app

/* 工具类库 */
const LocalStore = require('./utils/LocalStore');

const _DB = new LocalStore('__demoDB__');
window._DB = _DB;

    require('./factory.js')(ngModule,$jq);// 公共方法封装

	require('./route.js')(ngModule);// 引入路由文件

    require('./directives.js')(ngModule,$jq);// 组件

	require('./controllers.js')(ngModule);// 控制器

	require('bootstrap/dist/js/bootstrap.min');//引进bootstrap
	require('./js/modernizr-2.8.3.min.js'); //引入兼容插件

	//加载样式
	// require('bootstrap/dist/css/bootstrap.css');
	require('./css/common.css');
	require('./scss/main.scss');
